@font-face {
    font-family: Vazir;
    src: url('vazir.eot') format('embedded-opentype'), url('vazir.woff') format('woff'), url('vazir.ttf') format('truetype');
    font-weight: normal;
}
* {
    box-sizing: border-box;
    direction: rtl;
    font-family: Vazir;
}
body {
    background-color: #000;
    margin: 0;
    padding: 0;
    height: 100vh;
}
#bg-container {
    position: absolute;
    height: calc(100vh - 3rem);
    width: 100%;
    top: 3rem;
}
#center {
    background-color: transparent;
    position: absolute;
    top: 50%;
    left: 50%;
}
#design {
    width: 100%;
    height: 100%;
    position: absolute;
    top:0; right: 0;
    z-index: 1;
    background-color: transparent;
    font-size: 16px;
}
.vertic {
    width: 72vw;
    height: 90vh;
    margin-top: -45vh;
    margin-left: -36vw;
}
.horiz {
    width: 80vw;
    height: 64vh;
    margin-top: -32vh;
    margin-left: -40vw;
}
#bg {
    width: 100%; height: 100%; position: absolute; top:0; right:0;
}
#header {
    display: block;
    background-color: #777;
    position: sticky;
    top: 0;
    width: 100%;
    height: 3rem;
    margin: 0;
    padding: 0;
    z-index: 1000;
    text-align: center;
}
#header button {
    height: 3rem;
    min-width: 3rem;
    font-size: 2rem;
    background-color: rgba(0,0,0,.3);
    border-radius: .5rem;
    border: none;
    padding: 0;
}
#menubtn {float:right;}
#userbtn {float:left;}
#menu {
    position: fixed;
    top:3rem;
    width:100%;
    height:calc(100vh - 3rem);
    background-color: rgba(150,150,150,.9);
    z-index: 900;
    visibility: hidden;
    opacity: 0;
    transition: visibility .5s, opacity .5s;
}
#menu ul {
    text-align: center;
    list-style: none;
    font-size: x-large;
}
#menu li {
    padding-bottom: 3rem;
}
#logo {
    animation: attract .8s ease-in infinite alternate;
    transform-origin: center;
}
#logo.zoomed{
    animation: unset;
    transform: scale(1.3);
}
@keyframes attract {
    50% {
        filter:saturate(1) contrast(100%) brightness(100%);
        transform: scale(1);
    }
    100% {
        filter:saturate(4) contrast(200%) brightness(200%);
        transform: scale(1.3);
    }
}
#design text:hover {
    padding-left: 1em;
    padding-right: 1em;
    font-weight: 900;
    
}
#design polyline {
    animation: dashline linear infinite 3s;
    stroke-dashoffset: 600;
    stroke-dasharray: 200,400;
    transition: 1s;
}
@keyframes dashline {
    100% {
        stroke-dashoffset: 0;
    }
}
.stopped {
    animation: unset !important;
    stroke-dasharray: unset !important;
    stroke-dashoffset: unset !important;
    stroke-width: 6;
}
#inner {
    cursor: pointer;
}

h1,h2 {
    all:initial;
    font-family: Vazir;
    font-size: 1.5rem;
}
h1 {
    font-weight: 900;
    padding-left: 1rem;
}
h2,h3,h4 { display: none;}

#namad {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 100;
    width: auto;
    height: 75px;
}
#foot {
    text-align: center;
    position: fixed;
    bottom: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    
}
#foot a{
    color: #aaa;
    font-size: 2rem;
}
#foot a:hover{
    color: #fff;
    transition: 1s;
}
#writer {
    width: 100%;
    margin: 0;
    margin-top: 1rem;
    text-align: center;
    padding: 0;
    position: absolute;
    top:0;
    color: #eee;
}